<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>NV101: Исходный файл nv101.cpp</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Создано системой Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'Поиск');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NV101&#160;<span id="projectnumber">1.0.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Титульная&#160;страница</span></a></li>
      <li><a href="../../annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="../../files.html"><span>Файлы</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Поиск" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('d0/de1/nv101_8cpp.html','../../');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">nv101.cpp</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &lt;QtCore/qdebug.h&gt;</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="preprocessor">#include &quot;nv101.h&quot;</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <a class="code" href="../../d4/da9/class_n_v101.html" title="This class implements the interface for using the device Eltex NV-101.">NV101</a>* NV101::_self = 0;
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="comment">//======================================================</span>
<a name="l00008"></a>00008 
<a name="l00018"></a><a class="code" href="../../d4/da9/class_n_v101.html#ac7249ef2c3bee8463c0481a95062c2c6">00018</a> <a class="code" href="../../d4/da9/class_n_v101.html#ac7249ef2c3bee8463c0481a95062c2c6" title="Default constructor for class.">NV101::NV101</a>()
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020     <span class="keywordflow">if</span>(!_self)
<a name="l00021"></a>00021     {
<a name="l00022"></a>00022         _self = <span class="keyword">this</span>;
<a name="l00023"></a>00023     }
<a name="l00024"></a>00024 }
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 NV101::~NV101()
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028     <span class="keywordflow">if</span>(_self == <span class="keyword">this</span>)
<a name="l00029"></a>00029     {
<a name="l00030"></a>00030         _self = 0;
<a name="l00031"></a>00031     }
<a name="l00032"></a>00032 }
<a name="l00033"></a>00033 
<a name="l00045"></a><a class="code" href="../../d4/da9/class_n_v101.html#acf36a25efc769d71cf406a7b77c66282">00045</a> <span class="keywordtype">void</span> <a class="code" href="../../d4/da9/class_n_v101.html#acacb87596e5568af2ebe0c953f7cd204" title="Starts playback of media data from the source after the pause() function has been called...">NV101::play</a>(<span class="keyword">const</span> QUrl&amp; source)
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047     <span class="keywordflow">if</span>(_self)
<a name="l00048"></a>00048     {
<a name="l00049"></a>00049         qDebug() &lt;&lt; <span class="stringliteral">&quot;Play source: &quot;</span> &lt;&lt; source;
<a name="l00051"></a>00051     }
<a name="l00052"></a>00052 }
<a name="l00053"></a>00053 
<a name="l00059"></a><a class="code" href="../../d4/da9/class_n_v101.html#acacb87596e5568af2ebe0c953f7cd204">00059</a> <span class="keywordtype">void</span> <a class="code" href="../../d4/da9/class_n_v101.html#acacb87596e5568af2ebe0c953f7cd204" title="Starts playback of media data from the source after the pause() function has been called...">NV101::play</a>()
<a name="l00060"></a>00060 {
<a name="l00061"></a>00061     <span class="keywordflow">if</span>(_self)
<a name="l00062"></a>00062     {
<a name="l00063"></a>00063         qDebug() &lt;&lt; <span class="stringliteral">&quot;Play... &quot;</span>;
<a name="l00065"></a>00065     }
<a name="l00066"></a>00066 }
<a name="l00067"></a>00067 
<a name="l00072"></a><a class="code" href="../../d4/da9/class_n_v101.html#a28421157983681c1dbdbdcc1b504aaea">00072</a> <span class="keywordtype">void</span> <a class="code" href="../../d4/da9/class_n_v101.html#a28421157983681c1dbdbdcc1b504aaea" title="Pauses the playback.">NV101::pause</a>()
<a name="l00073"></a>00073 {
<a name="l00074"></a>00074     <span class="keywordflow">if</span>(_self)
<a name="l00075"></a>00075     {
<a name="l00076"></a>00076         qDebug() &lt;&lt; <span class="stringliteral">&quot;Pause... &quot;</span>;
<a name="l00078"></a>00078     }
<a name="l00079"></a>00079 }
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 
<a name="l00085"></a><a class="code" href="../../d4/da9/class_n_v101.html#a55a43171a935456326f093f21d2ee554">00085</a> <span class="keywordtype">void</span> <a class="code" href="../../d4/da9/class_n_v101.html#a55a43171a935456326f093f21d2ee554" title="Stops the playback.">NV101::stop</a>()
<a name="l00086"></a>00086 {
<a name="l00087"></a>00087     <span class="keywordflow">if</span>(_self)
<a name="l00088"></a>00088     {
<a name="l00089"></a>00089         qDebug() &lt;&lt; <span class="stringliteral">&quot;Stop... &quot;</span>;
<a name="l00091"></a>00091     }
<a name="l00092"></a>00092 }
<a name="l00093"></a>00093 
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>nv101.cpp</b>      </li>
      <li class="footer">Документация по NV101. Последние изменения: Ср 22 Июн 2011 13:05:53. Создано системой&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Указатель</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Классы</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Функции</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
